# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=wordgrinder
pkgver=0.7.2
pkgrel=0
pkgdesc="A simple Unicode-aware word processor that runs on the console"
url="https://cowlark.com/wordgrinder/"
arch="all"
license="MIT"
makedepends="ninja zlib-dev ncurses-dev uthash-dev freetype-dev libxft-dev"
subpackages="$pkgname-doc"
options="!check"
source="$pkgname-$pkgver.tar.gz::https://github.com/davidgiven/wordgrinder/archive/$pkgver.tar.gz
	fixes-musl.patch"

builddir="$srcdir/$pkgname-$pkgver"

package() {
	cd "$builddir"
	make install PREFIX=/usr DESTDIR="$pkgdir"
}

sha512sums="abf3fbeec25e557c780af9b633634d22214e20ae56aebe6574c97ba3d5e8d1adc985329ecf7930370f644d9762d064fb99ac8b64a5c95fa8e5ac6e14627f4d23  wordgrinder-0.7.2.tar.gz
559eb2c04ba950fa72a0474e6bb74d2fbe64e8322af13d9b15622bde93013d0b8adba30fda2fa8e0f1e86ba1b7a28c238c5284c98685f118117314e2dea9b4ed  fixes-musl.patch"
